package com.cos.shop.dao;

import com.cos.shop.entity.Cart;
import com.cos.shop.entity.vo.CartVo;

import java.sql.SQLException;
import java.util.List;

public interface CartDao {

    Cart findByUidAndPid(int uid , int pid ) throws SQLException;

    int addCart(Cart cart) throws SQLException;

    int updateCart(Cart cart) throws SQLException;

    int deleteCart(int uid , int pid ) throws SQLException;

    int deleteCart(int uid) throws SQLException;

    List<CartVo> getCartAll(int uid) throws SQLException;

}
